package com.lb.jwitter.util;

import java.util.ArrayList;
import java.util.Collection;

public class Department {
	private Long id;
	private String ten;
	private Collection<Person> persons;

	public Department() {
    }
	public Department(Long id, String ten ) {
        this.id = id;
        this.ten = ten;
        this.persons = new ArrayList<Person>();
        
    }
	public Long getId(){
		return id;
	}
	
	public void setId(Long id){
		this.id = id;
	}

	public String getTen() {
		return ten;
	}

	public void setTen(String ten) {
		this.ten = ten;
	}

	/**
	 * @return the persons
	 */
	public Collection<Person> getPersons() {
		return persons;
	}

	/**
	 * @param persons the persons to set
	 */
	public void setPersons(Collection<Person> persons) {
		this.persons = persons;
	}

}
